home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
util4
/
blcnts35.lha
/
BlocNotes
/
scroller.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-01-10
|
2KB
|
80 lines
/*Scroller.rexx*/
IF POS('blocnotes.rexx' , SHOW('Ports'))=0 THEN do
say "Sorry, I need Blocnotes. Run it first"
exit
end
/******************************************************************
Adjust these variables to fit in your system.
******************************************************************/
FontName='LetterGothic.font' /*Font to use*/
FontSize=60 /*Size of the font*/
/* These are for centering the window */
ScrWidth=800 /*Width of the screen*/
ScrHeight=600 /*Heigth of the screen*/
/*****************************************************************/
WindWidth=FontSize*5
WindHeight=FontSize+5
Speed=3
address 'blocnotes.rexx'
options results
forever=0
if words(Arg(1))<2 then do
if Arg(1)='?' then do
say 'USAGE: rx Scroller <times> <string>'
say 'Maximum length is 70 chars.'
end
times=3
string='USAGE: rx Scroller.rexx <times> <string>.Press a key.'
end
else do
times=word(arg(1),1)
if times=0 then forever=1
if (times=0)|(times>40) then times=2
p=POS(' ',Arg(1))
string=RIGHT(Arg(1),LENGTH(Arg(1))-p)
if LENGTH(string)>70 then do
string=left(string,70);
end
end
OPEN (ScrWidth-WindWidth)/2 (ScrHeight-WindHeight)/3 WindWidth WindHeight FontName FontSize 3
id=result
SETINSTIME Speed
EDIT id OFF
WORDWRAP id OFF
INHIBIT id ON
ONCLICK EXIT
AA=0
do i=0 to times-1
CLEAR id
GO id 1 0
GO id 10 0
PRINT id ' '
if AA=0 then do
SHOW id
AA=1
end
WASCLICKED id
if result='1' then break
PRINT id string
WASCLICKED id
if result='1' then break
PRINT id ' '
WASCLICKED id
if result='1' then break
if forever=1 then i=0
end
CLOSE id